package com.hry.store.service.impl;

import com.hry.store.dao.DistractMapper;
import com.hry.store.pojo.Distract;
import com.hry.store.service.DistractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DistractServiceImpl implements DistractService {
    @Autowired
    private DistractMapper distractMapper;

    /**
     * 根据cityId查询区县
     * @param cityId
     * @return
     */
    @Override
    public List<Distract> getByCityId(Integer cityId) {
        return distractMapper.getByCityId(cityId);
    }
}
